<template>
	<!-- 校园趣帖 -->
	<view class="post-container">
		<view class="img">
			<image src="/static/img/post/nppost.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 帖子列表
				postList: []
			}
		},
		onShow() {
			this.getPostList()
		},
		methods: {

			/**
			 * 获取帖子列表
			 */
			getPostList() {
				this.$request.post({
					url: '/api/post/list',
					success: res => {
						if (res.code == 200) {
							this.postList = res.result
						}
					}
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.post-container {
		width: 100%;
		min-height: 100vh;
		background-color: #fff;
		overflow: hidden;

		.img {
			width: 458rpx;
			height: 526rpx;
			margin: 330rpx auto 0;

			>image {
				width: 100%;
			}
		}
	}
</style>